<%@page import="cn.jhc.bean.UserBean"%>
<%@page import="cn.jhc.dao.MailDAO"%>
<%@page import="cn.jhc.bean.MailBean"%>
<%@page import="java.util.ArrayList"%>
<%@page import="cn.jhc.dao.ConnectionFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="FCK"%>
<%
	UserBean user = (UserBean) session.getAttribute("user");
	if (null == user) {
		String getb = (String) request.getParameter("getb");
		RequestDispatcher dispatcher = request
				.getRequestDispatcher("/login.jsp");
		dispatcher.forward(request, response);
		return;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/mail.css"></link>
<script type="text/javascript">
	function MM_popupMsg(msg) {

		alert(msg);

	}
</script>
<style>
* {
	border: 0;
}
</style>
<title>蓝调吉他社</title>
</head>
<body>
	<div id="wrapper">
		<%
			int mailNum;
			MailDAO dao5 = new MailDAO();
			dao5.setCon(ConnectionFactory.getConnection());
			mailNum = dao5.getMailCount(user.getDisplayname());
		%>
		<div id="name">
			欢迎您！会员：${sessionScope.user.displayname}|<a href="index.jsp">回到首页</a>
		</div>
		<div id="allmail_top">
			<a>消息中心</a>
		</div>
		<div id="allmail">
			<div id="mail_left">
				<div id="TabbedPanels1" class="TabbedPanels">
					<ul class="TabbedPanelsTabGroup">
						<li class="TabbedPanelsTab"><a href="mailindex.jsp">普通消息(已阅)</a></li>
						<li class="TabbedPanelsTab"><a href="mailadmin.jsp">管理员消息(已阅)</a></li>
						<li class="TabbedPanelsTab"><a href="mailnot.jsp">未阅览(<%=mailNum%>)
						</a></li>
					</ul>
					<div class="TabbedPanelsContentGroup2">
						<div class="TabbedPanelsContent2">
							<form method="post" action="./addmail.do">
								<p>
									<label for="title">发送给:</label> <input type="text" name="name"
										size="60px" value="请输入对方昵称..." />
								</p>
								<p>
									<label for="content">内容:</label>
									<FCK:editor id="content" basePath="./fckeditor/" width="600"
										imageBrowserURL="../filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
										linkBrowserURL="../filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
										flashBrowserURL="../filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
										imageUploadURL="../filemanager/upload/simpleuploader?Type=Image"
										linkUploadURL="../filemanager/upload/simpleuploader?Type=File"
										flashUploadURL="../filemanager/upload/simpleuploader?Type=Flash">
									</FCK:editor>
								</p>
								<p>
									<input type="hidden" name="page" value="1"> <input
										type="submit" value="提交"></input> <input type="reset" />
								</p>
							</form>
						</div>
					</div>
				</div>
			</div>
			<div id="mail_back">
				<a href="mailindex.jsp">返回</a>
			</div>
		</div>
		<div id="line"></div>
		<div id="copyright">
			<a>版权所有:蓝调吉他社 </a>
		</div>
	</div>
</body>
</html>